package com.poobo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.poobo.condiction.ResourcesConfigCondiction;
import com.poobo.dao.IResourcesConfigDao;
import com.poobo.entity.TbResourcesConfig;
import com.poobo.service.IResourcesConfigService;
import com.poobo.util.pager.Page;

@Service
@Transactional
public class ResourcesConfigServiceImpl implements IResourcesConfigService{
	@Autowired
	private IResourcesConfigDao resourcesConfigDao;

	@Override
	public TbResourcesConfig queryResourcesConfigById(Integer id) {
		return resourcesConfigDao.queryResourcesConfigById(id);
	}

	@Override
	public Page queryResourcesConfigPage2(TbResourcesConfig resourcesConfig,
			Page page) {
		return resourcesConfigDao.queryResourcesConfigPage2(resourcesConfig, page);
	}

	@Override
	public void deleteResourcesConfigById(Integer id) {
		resourcesConfigDao.deleteResourcesConfigById(id);
	}

	@Override
	public void saveResourcesConfig(TbResourcesConfig resourcesConfig) {
		resourcesConfigDao.saveResourcesConfig(resourcesConfig);
	}

	@Override
	public Page queryResourcesConfigPage(
			ResourcesConfigCondiction resourcesConfigCondiction, Page page) {
		return resourcesConfigDao.queryResourcesConfigPage(resourcesConfigCondiction, page);
	}

	@Override
	public List<TbResourcesConfig> queryResourcesConfigByConfigListId(
			Integer configListId) {
		return resourcesConfigDao.queryResourcesConfigByConfigListId(configListId);
	}

	@Override
	public void deleteResourcesConfigByResourcesId(Integer resourcesId) {
		resourcesConfigDao.deleteResourcesConfigByResourcesId(resourcesId);
	}

	@Override
	public void deleteResourcesConfigByConfigListId(Integer configId) {
		resourcesConfigDao.deleteResourcesConfigByConfigListId(configId);
	}

	@Override
	public String copyResourcesConfigByConfigListId(Integer configId) {
		return resourcesConfigDao.copyResourcesConfigByConfigListId(configId);
	}
}
